import os
import logging

# This logger is for soap server
SOAPLOG_FILE = os.sep.join([os.environ['HOME'], "soap.log"])
soaplogger = logging.getLogger("soap")
soaplogger.setLevel(logging.DEBUG)
sfh = logging.FileHandler(SOAPLOG_FILE, "w")
sfh.setLevel(logging.NOTSET)
sfh.setFormatter(logging.Formatter(
                "%(asctime)s - %(name)s - %(levelname)s - %(message)s"))
soaplogger.addHandler(sfh)